/**
 * 作者: hxl
 * 日期: 2024-12-14 21:27:48
 * 备注: 七天乐任务配置表
 */
package com.motu.monstercity.server.game.commondata.act;
import com.motu.monstercity.server.game.base.CommonUtils;
import com.motu.monstercity.server.game.logic.RewardItem;
import io.vertx.core.json.JsonObject;

import java.util.List;

public class ActTask extends ActTaskModel {
    public static final int RESET_DAILY = 1; // 每日重置：每日将任务进行重置
    public static final int RESET_ACT = 2; // 活动期间：在该活动期间不会重置任务

    public static final int TASK_TYPE_LOGIN = 1;
    public static final int TASK_TYPE_REWARD = 2;

    private List<RewardItem> rewardItemList;
    public ActTask(JsonObject obj) {
        super(obj);
        rewardItemList = CommonUtils.takeReawrdItemFromStr(reward);
    }

    public List<RewardItem> getRewardItemList() {
        return rewardItemList;
    }

    public boolean isGetMainTask() {
        return getMainTask == 1;
    }
    public boolean isFirstDayOpen() {
        return firstDayOpen == 1;
    }
}
